<template>
  <div class="d-Precautions">
    <span class="d-Precautions-txt">
      <p>上传注意事项:</p>
      <p>
        <span></span>
        上传安卓应用后缀必须是apk,最大支持上传文件400M。
      </p>
      <p>
        <span></span>
        apk包里确保icon、bundleid、包名,等信息完整,确保权限完整。
      </p>
    </span>
  </div>
  <Upload :upurl="upurl" type="apk" @routerPush="routerPush" />
</template>
<script lang='ts'>
import { InboxOutlined } from "@/components/AntDesign/icons/icons";
import AppInfoParser from "app-info-parser";
import Upload from "@/components/Upload/Upload.vue";
import { reactive, ref, toRef, toRefs } from "vue";
import $router from "@/router";
export default {
  components: {
    InboxOutlined,
    Upload,
  },
  setup() {
    const upurl = `${(window as any).$URL}/apkmod/addapk`;
    function routerPush() {
      $router.push({ path: "/applist" });
    }
    return { upurl, routerPush };
  },
};
</script>
<style lang="less" scoped>
.d-Precautions {
  margin: 30px 0;
  .d-Precautions-txt {
    font-size: 14px;
    display: block;
    width: 30%;
    margin: 0 auto;
    span {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 10px;
      background-color: #2f82ff;
    }
    p {
      margin: 10px 0;
    }
  }
}
</style>
